package com.atgugu.flink.util;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author lzc
 * @Date 2022/4/6 16:26
 */
public class AtguiguUtil {
    public static <T> List<T> toList(Iterable<T> it) {
        ArrayList<T> result = new ArrayList<>();
        //        it.forEach(e -> result.add(e));
        it.forEach(result::add);
        return result;
    }
}
